package com.bafa.front.presentationbeans.playerhistory;

import com.bafa.objects.player.PlayerDivision;
import com.bafa.objects.player.PlayerTeam;
import com.bafa.services.RetrieveServices;

public class DivisionGoalsBean implements Comparable{

	private int divisionId;
	private int goals;

	public DivisionGoalsBean(PlayerDivision playerDivision) {
		
		this.divisionId = playerDivision.getDivision();
		this.goals = playerDivision.getGoals();
		
	}
	
	public int compareTo(Object arg0) {
		if(((DivisionGoalsBean)arg0).getGoals()!=this.goals)
			return ((DivisionGoalsBean)arg0).getGoals()-this.goals;
		else
			return 1;
	}

	public int getGoals() {
		return goals;
	}

	public void setGoals(int goals) {
		this.goals = goals;
	}

	public int getDivisionId() {
		return divisionId;
	}

	public void setDivisionId(int teamId) {
		this.divisionId = teamId;
	}

	
}
